#SRC= $(wildcard *.c)
SRC= $(shell ls *.c)
OBJ= $(SRC:.c=.o)
BIN= progress.exe
cc = gcc
RM = rm -f
LFLAGES=-o
FLAGES=-c

$(BIN):$(OBJ)
	@$(CC) $(LFLAGES) $@ $^ 
	@echo 'link... $^ to  $@'
%.o:%.c
	@$(cc) $(FLAGES) $< -std=c99  
	@echo 'compling... $< to  $@' 
.PHONY:clean
clean:
	@$(RM) $(OBJ) $(BIN)
	


